package com.google.code.sms.domain;

import java.util.ArrayList;
import java.util.List;

import com.google.code.sms.service.SearchService;

/**
 * The outcome of a search.
 *
 * @author Sindre Mehus
 * @see SearchService#search
 */
public class SearchResult {

    private final List<MediaElement> mediaElements = new ArrayList<>();
    private int offset;
    private int totalHits;

    public List<MediaElement> getMediaElements() {
        return mediaElements;
    }

    public int getOffset() {
        return offset;
    }

    public void setOffset(int offset) {
        this.offset = offset;
    }

    public int getTotalHits() {
        return totalHits;
    }

    public void setTotalHits(int totalHits) {
        this.totalHits = totalHits;
    }
}